package com.xinxin.o2o.dto;

import com.xinxin.o2o.enums.ProductCategoryStateEnum;
import com.xinxin.o2o.model.ProductCategory;
import lombok.Data;

import java.util.List;

/**
 * @author 史鑫鑫
 * @date 2019-08-20 1:37
 */
@Data
public class ProductCategoryExecution {
    private int state;
    private String stateInfo;
    private List<ProductCategory> productCategoryList;

    public ProductCategoryExecution() {
    }

    public ProductCategoryExecution(ProductCategoryStateEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    public ProductCategoryExecution(ProductCategoryStateEnum stateEnum, List<ProductCategory> productCategoryList) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.productCategoryList = productCategoryList;
    }
}
